#include "..\System.h"

/*[ Sort ] */
public static_ void space(System_Array,Sort)(Array array)
{
    if (array == null)
    {
        throw(ArgumentNullException, "array");
    }
    space(System_Array,Sort8)(array, null, 0, get(Array,array,Length), null);
}
/*[ Sort2 ] */
public static_ void space(System_Array,Sort2)(Array keys, Array items)
{
    if (keys == null)
    {
        throw(ArgumentNullException, "keys");
    }
    space(System_Array,Sort8)(keys, items, 0, get(Array,keys,Length), null);
}
/*[ Sort3 ] */
public static_ void space(System_Array,Sort3)(Array array, System_IComparer2 *comparer)
{
    if (array == null)
    {
        throw(ArgumentNullException, "array");
    }
    space(System_Array,Sort8)(array, null, 0, get(Array,array,Length), comparer);
}
/*[ Sort4 ] */
public static_ void space(System_Array,Sort4)(Array keys, Array items, System_IComparer2 *comparer)
{
    if (keys == null)
    {
        throw(ArgumentNullException, "keys");
    }
    space(System_Array,Sort8)(keys, items, 0, get(Array,keys,Length), comparer);
}
/*[ Sort5 ] */
public static_ void space(System_Array,Sort5)(Array array, int_ index, int_ length)
{
    space(System_Array,Sort8)(array, null, index, length, null);
}
/*[ Sort6 ] */
public static_ void space(System_Array,Sort6)(Array array, int_ index, int_ length, System_IComparer2 *comparer)
{
    space(System_Array,Sort8)(array, null, index, length, comparer);
}
/*[ Sort7 ] */
public static_ void space(System_Array,Sort7)(Array keys, Array items, int_ index, int_ length)
{
    space(System_Array,Sort8)(keys, items, index, length, null);
}
/*[ Sort8 ] */
public static_ void space(System_Array,Sort8)(Array keys, Array items, int_ index, int_ length, System_IComparer2 *comparer)
{
    if (keys == null)
    {
        throw(ArgumentNullException, "keys");
    }
    if ((index < 0) || (length < 0))
    {
        throw(ArgumentOutOfRangeException, (length < 0 ? "length" : "index"));
    }
    if (((get(Array,keys,Length) - (index - 0)) < length) || ((items != null) && ((index - 0) > (get(Array,items,Length) - length))))
    {
        throw(ArgumentException, "Argument_InvalidOffLen");
    }
    //if ((length > 1) && (((comparer != Comparer.Default) && (comparer != null)) || !TrySZSort(keys, items, index, (index + length) - 1)))
    //{
    //    System_Object[] objArray = keys as System_Object[];
    //    System_Object[] objArray2 = null;
    //    if (objArray != null)
    //    {
    //        objArray2 = items as System_Object[];
    //    }
    //    if ((objArray != null) && ((items == null) || (objArray2 != null)))
    //    {
    //        new SorterObjectArray(objArray, objArray2, comparer).QuickSort(index, (index + length) - 1);
    //    }
    //    else
    //    {
    //        new SorterGenericArray(keys, items, comparer).QuickSort(index, (index + length) - 1);
    //    }
    //}
}

 

 

 

 






 

 














